<?php

class Webmix_Model_Country extends Core_Model_Item_Abstract {
	public function getWebmix(){
		$webmixTbl = Engine_Api::_()->getDbTable('webmixes', 'webmix');
		return $webmixTbl->fetchRow($webmixTbl->select()->where('country_id = ?', $this->getIdentity())->limit(1));
	}
	public function getWebmixId(){
	    
		return $this->getWebmix()->webmix_id;
	}
}